import request from '@/utils/request'
export const reqGetCompanyDepartment = () => {
  return request.get('/company/department')
}
export const reqDelDepartment = id => {
  return request.delete(`/company/department/${id}`)
}
export const reqAddDepartments = data => {
  return request.post('/company/department', data)
}
export const reqGetDepartDetail = id => {
  return request.get(`/company/department/${id}`)
}
export const reqUpdateDepartments = data => {
  return request.put(`/company/department/${data.id}`, data)
}
